<?php
/**
 * Created by PhpStorm.
 * User: 73640
 * Date: 2018/11/9
 * Time: 15:40
 */

namespace App\Admin\Extensions\Form;


use Encore\Admin\Form\Field;

class Bmap extends  Field
{
    protected  $column=[];
    public static $js = [
       //"http://api.map.baidu.com/api?v=2.0&ak=ziq74kGuGFe7HASYuRm6ipXg"
    ];
    protected $view = 'admin.map';

    public function __construct($column, $arguments)
    {
        $this->column['lat'] = $column;
        $this->column['lng'] = $arguments[0];

        array_shift($arguments);

        $this->label = $this->formatLabel($arguments);
        $this->id = $this->formatId($this->column);


    }
    public function render()
   {


        $this->script = <<<EOT
    



EOT;

        return parent::render();
    }
}